package com.itheima.mapper;

import com.itheima.bean.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    /**
     * 通过用户名查询
     * @param user
     * @return
     */
    @Select("select * from t_user where username = #{username}")
    User getBy(User user);

}
